BASEDIR = ${HOME}

CC = g++
CXX = g++
CPPFLAGS = -Wall -L ${BASEDIR}/lib -I ${BASEDIR}/include
LDLIBS = -lpthread

programas = main teste

all: ${programas}

sem.o: sem.h

ssocket.o: ssocket.h

Chord.o: Chord.h sistema.h sem.h ssocket.h

main: Chord.o main.o ssocket.o sem.o

teste: teste.o Chord.o ssocket.o sem.o

##### SPECIAL TARGETS ######

.PHONY: clean realclean

clean:
	-rm -f *.o *~

realclean: clean
	-rm -f ${programas}
